x = [0
0.5
1
1.5
2
2.5
3
3.5
4
4.5
5
5.5
6
6.5
7
7.5
8
8.5
9
9.5
10
10.5
11
11.5
12
12.5
13
13.5
14
14.5
15
15.5
16
16.5
17
17.5
18
18.5
19
19.5
20
20.5
21
21.5
22
22.5
23
];

y1 = [-1
-0.97
-0.96
-0.93
-0.92
-0.89
-0.87
-0.84
-0.81
-0.76
-0.72
-0.687
-0.626
-0.583
-0.504
-0.432
-0.358
-0.264
-0.153
-0.064
0.059
0.159
0.285
0.384
0.495
0.604
0.706
0.785
0.837
0.889
0.923
0.937
0.954
0.935
0.907
0.891
0.862
0.835
0.807
0.769
0.731
0.687
0.662
0.649
0.645
0.648
0.654
];


y2 = [1.3
1.209
1.058
0.981
0.881
0.782
0.687
0.589
0.52
0.445
0.383
0.331
0.298
0.257
0.236
0.225
0.22
0.239
0.264
0.295
0.328
0.382
0.432
0.496
0.57
0.63
0.682
0.721
0.757
0.768
0.786
0.788
0.773
0.771
0.753
0.724
0.698
0.666
0.631
0.6
0.534
0.499
0.463
0.404
0.364
0.308
0.257
];

x11=linspace(min(x),max(x));
y11=interp1(x,y1,x11,'cubic');

x22=linspace(min(x),max(x));
y22=interp1(x,y2,x22,'cubic');

Line1 = line(x11,y11);
Line2 = line(x22,y22);

set(Line1, 'LineStyle', '--','LineWidth', 1,  'Color', [132  94  194]/255)
set(Line2, 'LineStyle', '--','LineWidth', 1,  'Color', [44  115  210]/255)

% 坐标区调整
set(gca, 'Box', 'off', ...                                % 边框
         'TickDir', 'out', 'TickLength', [.01 .01], ...   % 刻度
         'XMinorTick', 'off', 'YMinorTick', 'off', ...    % 小刻度
         'XColor', [.1 .1 .1],  'YColor', [.1 .1 .1],...  % 坐标轴颜色
         'XTick', 0:5:25,  'YTick', -1:0.5:1.5,...     % 刻度位置、间隔
         'Xlim' ,[0 25],'Ylim' ,[-1.5 1.5], ...          % 坐标轴范围
         'Xticklabel',{[0:5:25]},...                   % X坐标轴刻度标签
         'Yticklabel',{[-1:0.5:1.5]})                     % Y坐标轴刻度标签
% X、Y轴标签及Legend
hXLabel = xlabel('Time (s)');
hYLabel = ylabel('Acceleration (m/s^2)');
hLegend = legend([Line1,Line2], ...
                 'FV', 'SV', ...
                 'Location', 'northeast');
% 刻度标签字体和字号
set(gca, 'FontName', 'Times', 'FontSize', 9)
% X、Y轴标签及Legend的字体字号 
set([hXLabel, hYLabel,hLegend], 'FontName',  'Helvetica')
set([hXLabel, hYLabel,hLegend], 'FontSize', 10)
% 背景颜色
set(gca,'Color',[1 1 1])

